#ifndef PIECE_WIDGET_HPP
#define PIECE_WIDGET_HPP

#include "../Chess.hpp"
#include "StaticSpriteWidget.hpp"
#include <QtGui>
#include <QGraphicsScene>

class PieceWidget : public StaticSpriteWidget
{
	public:
			
		PieceWidget(Piece* p);
		~PieceWidget();
		void	setActivatedAsSelect(bool val = true);
		void	setActivatedAsChoice(bool val = true);		
		void 	setPixmapSelected(bool val = true);
		Piece*	getPiece() const;
		void	refresh();		
		
	private:
		Piece* 					piece;
		bool					connected;
		bool					activatedSelect;
		bool					activatedChoice;
};

#endif
